package com.trkj.dao.jpa;

import java.util.List;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import com.trkj.pojos.YzrGrantMedDet;

public interface IYzrGrantMedDetDAO extends CrudRepository<YzrGrantMedDet, String> {

	//查找最大编号
	@Query("select max(mc.grantMedDetId) from YzrGrantMedDet mc where mc.grantMedDetId like ?1%")
	public String findId(String a);
	
	@Query("select mc from YzrGrantMedDet mc where mc.grantMedDetGrantMedId=?1")
	public List<YzrGrantMedDet> findDetByGrantId(String grantMedId);
}
